package com.ygsoft.example.employee;

import org.apache.ibatis.session.SqlSession;

import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.stereotype.Service;

import java.util.ArrayList;

import java.util.List;

@Service
public class EmployeesService {

	@Autowired
	private SqlSession sqlSession;

	public List<Employees> getEmployeesList() {
		List<Employees> result = new ArrayList<Employees>();
		EmployeesMapper employeesMapper = sqlSession.getMapper(EmployeesMapper.class);
		result = employeesMapper.getEmployeesList();
		return result;

	}

}
